<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>demo..</title>
    <script src="../common/vue.js" type="text/javascript"></script>
    <style type="text/css">

    </style>
</head>
<body>
<!--view-->


<div id="div_test">


    <hr/>

    <div id="parent">
        <user-profile v-ref:profile></user-profile>
    </div>






</div>


<script type="text/javascript">


    Vue.component("user-profile",{
        template:'<span>哈哈哈啊哈哈</span>'

    })

    var parent = new Vue({
        el:"#parent"
    })


    var child = parent.$refs.profile;
    console.log(child);





</script>

</body>
</html>